'use strict';

const Controller = require('egg').Controller;

class role extends Controller {
  async list() {
    const { ctx, service } = this;
    const data = await service.role.list();
    ctx.body = ctx.response.successResult(2001, data || []);
  }
}

module.exports = role;
